const CompanyStudentService = require("../service/CompanyStudentService")

const CompanyStudentController = {
    getList: async (req, res) => {
        const result = await CompanyStudentService.getList()
        res.send(result)
    },
    addList:async (req,res) => {
        // console.log(req.body);
        const result = await CompanyStudentService.addList(req.body)
        res.send(result)
    },
    deleteList:async (req,res) => {
        const result = await CompanyStudentService.deleteList(req.params.id)
        res.send(result)
    },
    // updateList:async(req,res) => {
    //     const result = await CompanyStudentService.updateList(req.params.id,req.body)
    //     res.send(result)
    // }
}
module.exports = CompanyStudentController